package com.rm.zeyou.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 业务员提现记录表
 * </p>
 *
 * @author YanYang
 * @since 2025-03-12 15:55:08
 */
@Getter
@Setter
@TableName("t_salesman_payout_detail")
@ApiModel(value = "SalesmanPayoutDetail对象", description = "业务员提现记录表")
public class SalesmanPayoutDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("业务员提现ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("业务员ID")
    @TableField("salesman_id")
    private Long salesmanId;

    @ApiModelProperty("提现金额")
    @TableField("payout_price")
    private BigDecimal payoutPrice;

    @ApiModelProperty("手续费")
    @TableField("payout_fee")
    private BigDecimal payoutFee;

    @ApiModelProperty("实际到账")
    @TableField("real_price")
    private BigDecimal realPrice;

    @ApiModelProperty("银行卡名字")
    @TableField("back_name")
    private String backName;

    @ApiModelProperty("持卡人姓名")
    @TableField("back_user_name")
    private String backUserName;

    @ApiModelProperty("银行卡号")
    @TableField("back_idcard")
    private String backIdcard;

    @ApiModelProperty("所属分行")
    @TableField("back_branch")
    private String backBranch;

    @ApiModelProperty("提现状态（0=审核中 1=成功 2=失败）")
    @TableField("payout_status")
    private Integer payoutStatus;

    @ApiModelProperty("逻辑删除（0=未删除，1=已删除）")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
      @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @ApiModelProperty("失败原因")
    @TableField("false_reason")
    private String falseReason;

    @ApiModelProperty("税费")
    @TableField("payout_tax")
    private BigDecimal payoutTax;

    @ApiModelProperty("提现类型（0=微信 1=银行 2=支付宝）")
    @TableField("payout_type")
    private Integer payoutType;

    @ApiModelProperty("微信侧提现单号")
    @TableField("wx_withdrawals_no")
    private String wxWithdrawalsNo;

    @ApiModelProperty("提现状态")
    @TableField("wx_withdrawals_status")
    private String wxWithdrawalsStatus;

    @ApiModelProperty("提现环境（H5  APP）")
    @TableField("withdrawals_environment")
    private String withdrawalsEnvironment;

    @ApiModelProperty("确认转账信息")
    @TableField("package_info")
    private String packageInfo;

    @ApiModelProperty("支付宝提现订单号")
    @TableField("out_biz_no")
    private String outBizNo;

    @ApiModelProperty("支付宝提现状态")
    @TableField("zfb_status")
    private String zfbStatus;

}
